package com.zunipe.trainticketsystem.database.entity;

public class Train {
    private Integer id;
    private String trainNumber;
    private String placeOfStart;
    private String placeOfEnd;
    private String startTime;
    private String endTime;
    private String type;
    private Double price;
    private Integer count;

    public Train() {
    }

    public Train(String trainNumber, String placeOfStart, String placeOfEnd, String startTime, String endTime, String type, Double price, Integer count) {
        this.trainNumber = trainNumber;
        this.placeOfStart = placeOfStart;
        this.placeOfEnd = placeOfEnd;
        this.startTime = startTime;
        this.endTime = endTime;
        this.type = type;
        this.price = price;
        this.count = count;
    }

    public Train(Integer id, String trainNumber, String placeOfStart, String placeOfEnd, String startTime, String endTime, String type, Double price, Integer count) {
        this.type = type;
        this.id = id;
        this.trainNumber = trainNumber;
        this.placeOfStart = placeOfStart;
        this.placeOfEnd = placeOfEnd;
        this.startTime = startTime;
        this.endTime = endTime;
        this.price = price;
        this.count = count;
    }

    public String getEndTime() {
        return endTime;
    }

    public Train setEndTime(String endTime) {
        this.endTime = endTime;
        return this;
    }

    public String getPlaceOfStart() {
        return placeOfStart;
    }

    public Train setPlaceOfStart(String placeOfStart) {
        this.placeOfStart = placeOfStart;
        return this;
    }

    public String getPlaceOfEnd() {
        return placeOfEnd;
    }

    public Train setPlaceOfEnd(String placeOfEnd) {
        this.placeOfEnd = placeOfEnd;
        return this;
    }

    public Integer getId() {
        return id;
    }

    public Train setId(Integer id) {
        this.id = id;
        return this;
    }

    public String getTrainNumber() {
        return trainNumber;
    }

    public Train setTrainNumber(String trainNumber) {
        this.trainNumber = trainNumber;
        return this;
    }

    public String getStartTime() {
        return startTime;
    }

    public Train setStartTime(String startTime) {
        this.startTime = startTime;
        return this;
    }

    public String getType() {
        return type;
    }

    public Train setType(String type) {
        this.type = type;
        return this;
    }

    public Double getPrice() {
        return price;
    }

    public Train setPrice(Double price) {
        this.price = price;
        return this;
    }

    public Integer getCount() {
        return count;
    }

    public Train setCount(Integer count) {
        this.count = count;
        return this;
    }
}
